package com.TP.www.po;

/**
 * @author 邱彦祥
 * 购物车
 */
public class Cart {
    /**
     * 购物车id
     */
    private Integer id;

    /**
     * 商品数量
     */
    private Integer goodsNum;

    /**
     *用户名
     */
    private String name;

    /**
     *店铺名
     */
    private String storeName;

    /**
     *商品名
     */
    private String goodName;
    /**
     * 单价
     */
    private Double price;
    /**
     * 商品状态
     */
    private Integer state;

    public Cart() {
    }

    public Cart(Integer id, Integer goodsNum, String name, String storeName, String goodName, Double price, Integer state) {
        this.id = id;
        this.goodsNum = goodsNum;
        this.name = name;
        this.storeName = storeName;
        this.goodName = goodName;
        this.price = price;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "goodsNum=" + goodsNum + '\'' +
                ", storeName='" + storeName + '\'' +
                ", goodName='" + goodName + '\'' +
                ", price=" + price +
                '}';
    }
}
